local jianxiang = fk.CreateSkill{
  name = "mod__jianxiang",
}
local jianxiang_ = {
  anim_type = "support",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(self) and data.from and data.from ~= player.id
  end,
  on_cost = function(self, event, target, player, data)
    local room = player.room
    local targets = table.filter(room.alive_players, function(p)
      return player:getHandcardNum() >= p:getHandcardNum() end)
    targets = table.map(targets, Util.IdMapper)
    local to = room:askForChoosePlayers(player, targets, 1, 1, "#mod__jianxiang-invoke", self.name)
    if #to > 0 then
      self.cost_data = to[1]
      return true
    end
  end,
  on_use = function(self, event, target, player, data)
    local to = player.room:getPlayerById(self.cost_data)
    to:drawCards(1, self.name)
  end,
}
jianxiang:addEffect(fk.TargetConfirmed, jianxiang_)
return jianxiang